//
//  WithdrawDetailViewController.m
//  share_business
//
//  Created by baidufz on 2017/9/17.
//  Copyright © 2017年 wyl. All rights reserved.
//

#import "WithdrawDetailViewController.h"
#import "UICollectionView+RegisterCell.h"
#import "CommonDetailItemCell.h"

@interface WithdrawDetailViewController () <UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>

@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;

@end

@implementation WithdrawDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self registerCell];
    [self initDetail];
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    self.navigationItem.title = @"提现明细";
    [self defaultMessageRightButton];
    
}

- (void)registerCell {
    [_collectionView registerCell:[CommonDetailItemCell class]];
}

- (void)initDetail {
    _collectionView.dataSource = self;
    _collectionView.delegate = self;
    
}

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return 5;
}


- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    CommonDetailItemCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([CommonDetailItemCell class]) forIndexPath:indexPath];
    
    return cell;
}

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
    return CGSizeMake(ScreenWidth, 60);
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
